package com.qf.service;

import com.codingapi.txlcn.tc.annotation.LcnTransaction;
import com.qf.mapper.UserMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

/**
 * @author lixu
 */
@Service
public class L4ServiceImpl implements L4Service{

    @Autowired
    private UserMapper userMapper;
    @Override
    @Transactional //本地事务注解
    //@LcnTransaction //分布式事务注解
    public void decr() {
        userMapper.decr();
    }
}
